﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace comm.objst
{
    [Serializable]
    public class HeroBaseInfo
    {
        private string _userId = null;
        public string UserId
        {
            get
            {
                if (_userId == null)
                {
                    _userId = "";
                }
                return _userId;
            }
            set { _userId = value; }
        }

        private string _playerId = null;
        public string PlayerId
        {
            get
            {
                if (_playerId == null)
                {
                    _playerId = "";
                }
                return _playerId;
            }
            set { _playerId = value; }
        }

        private string _dObjectId = null;
        public string DObjectId
        {
            get
            {
                if (_dObjectId == null)
                {
                    _dObjectId = "";
                }
                return _dObjectId;
            }
            set { _dObjectId = value; }
        }

        private string _nickname = null;
        public string Nickname
        {
            get
            {
                if (_nickname == null)
                {
                    _nickname = "";
                }
                return _nickname;
            }
            set { _nickname = value; }
        }
    }

    [Serializable]
    public class HeroCreateInfo : HeroBaseInfo
    {
        public bool IsOnline { get; set; }
    }

    [Serializable]
    public class HeroInfo : HeroBaseInfo
    {
        private Dictionary<string, long> _nvvalueDic = null;
        public Dictionary<string, long> NVValueDic
        {
            get
            {
                if (_nvvalueDic == null)
                {
                    _nvvalueDic = new Dictionary<string, long>();
                }
                return _nvvalueDic;
            }
            set { _nvvalueDic = value; }
        }
    }

    [Serializable]
    public class HeroFullInfo : HeroInfo
    {
    }
}
